//////define OUTPUT////////////////
int1 var;
#define Loa(var)     output_bit(pin_D2, var);
#define COI(var)     output_bit(pin_D3, var);
#define st_led(var)  output_bit(Pin_D0, var);
#define WP(var)      output_bit(pin_C5, var);
#define DS(var)      output_bit(pin_C0, var);
#define Shift(var)   output_bit(pin_C1, var);
#define latch(var)   output_bit(pin_C2, var);
///////////////////////////////////

//////define INPUT/////////////////
#define key_com  pin_b0
#define key1     pin_b1 //key A
#define key2     pin_b2 //key B
#define key3     pin_b3 //key C
#define key4     pin_b4 //key D
//////define I2C PIN///////////////
#define Device_SCL  Pin_C3
#define Device_SDA  Pin_C4
///////////////////////////////////

/////define 74HC595 PIN////////////
#IFNDEF EXP_OUT_ENABLE
#define OE              pin_d1  ///OE pin
#define EXP_OUT_ENABLE  PIN_c2  ///latch pin
#define EXP_OUT_CLOCK   PIN_c1  ///shift pin
#define EXP_OUT_DO      PIN_c0  ///Data Pin
#define NUMBER_OF_74595 4

#ENDIF
